package com.my.study.jdbc.service.impl;

import com.my.study.jdbc.dao.AccountDao;
import com.my.study.jdbc.entity.Account;
import com.my.study.jdbc.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Carlos
 * @version 1.0
 * @Description TODO
 * @date 2021/11/6 13:25
 **/
@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountDao accountDao;

    @Override
    public int add(Account account) {
        return accountDao.add(account);
    }

    @Override
    public int update(Account account) {
        return accountDao.update(account);
    }
}
